package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.LikeRecordDao;
import com.platform.entity.LikeRecordEntity;
import com.platform.service.LikeRecordService;

/**
 * 点赞记录表Service实现类
 *
 * @author czj
 * @email 729618941@qq.com
 * @date 2018-11-06 09:33:26
 */
@Service("likeRecordService")
public class LikeRecordServiceImpl implements LikeRecordService {
    @Autowired
    private LikeRecordDao likeRecordDao;

    @Override
    public LikeRecordEntity queryObject(Integer id) {
        return likeRecordDao.queryObject(id);
    }

    @Override
    public List<LikeRecordEntity> queryList(Map<String, Object> map) {
        return likeRecordDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return likeRecordDao.queryTotal(map);
    }

    @Override
    public int save(LikeRecordEntity likeRecord) {
        return likeRecordDao.save(likeRecord);
    }

    @Override
    public int update(LikeRecordEntity likeRecord) {
        return likeRecordDao.update(likeRecord);
    }

    @Override
    public int delete(Integer id) {
        return likeRecordDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[]ids) {
        return likeRecordDao.deleteBatch(ids);
    }
}
